<div ng-controller="StoredistributionCtrl" ng-init="groupaddAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/storedistribution/grouplist">{{'店铺分账'|translate}}</a></li>
        <li class="active"> {{group.group_id?'edit':'add_new'|translate}}</li>
    </ul>
    <form name="groupForm" novalidate>
        <div class="control-group">
            <label class="control-label v-top">{{'分组名称'|translate}}：</label>
            <div class="controls">
                <input ng-model="group.name" type="text" class="input-xlarge">
            </div>
        </div>

        <!-- <div class="control-group">
            <label class="control-label">
                分组类型：
            </label>
            <div class="controls">
                <fz-group-type ng-model="group.type"></fz-group-type>
            </div>
        </div> -->

        <div class="control-group">
            <label class="control-label">
                分账类型：
            </label>
            <div class="controls">
                <label data-toggle="radio" class="radio-pretty inline {{group.ptype == 1?'checked':''}}">
                    <input type="radio" name="radio" ng-checked="{{group.ptype==1}}" ng-model="group.ptype" value="1"><span>按比例分账</span>
                </label>
                <label data-toggle="radio" class="radio-pretty inline {{group.ptype == 2?'checked':''}}">
                    <input type="radio" name="radio" ng-model="group.ptype" ng-checked="{{group.ptype==2}}" value="2"><span>按单分账</span>
                </label>
            </div>
        </div>

        <div class="control-group" ng-show="group.ptype == 1">
            <label class="control-label v-top">
                按比例分账：
            </label>
            <div class="controls">
                <input id="proportion" type="text" name="proportion" ng-model="group.proportion" />%
            </div>
        </div>

        <div class="control-group" ng-show="group.ptype==2">
            <label class="control-label v-top">
                按固定金额分账：
            </label>
            <div class="controls">
                <input id="order" type="text" name="order" ng-model="group.orderp" /> 元
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top">{{'备注'|translate}}：</label>
            <div class="controls">
                <textarea rows="6" ng-model="group.remark" class="input-xlarge"></textarea>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button ng-click="groupAdd()" class="sui-btn btn-primary" ng-disabled="!group.name">
                    {{'save' | translate}}
                </button>
            </div>
        </div>
    </form>
</div>